﻿using Sustainalytics.ClientDW.Synchronization.SyncProductInvolvement;
using Sustainalytics.Entities.ConnectionStrings;
using Sustainalytics.Synchronization.Interface;
using System.Collections.Concurrent;
using System.Collections.Generic;
using Xunit;

namespace Sustainalytics.ClientDW.Synchronization.SyncProductInvolvement.Tests
{
    public class PISolutionsSyncStepTests
    {
        [Fact]
        public void ISyncStep_Start_Test()
        {
            var syncStep = new PISolutionsSyncStep();

            var syncContext = new SyncContext
            {
                LastSyncTime = null,
                GAConnectionStrings = new Dictionary<string, string>
                {
                    {ConnectionStringType.ProductInvolvementDW.ToString(), "mongodb://localhost:27017/ProductInvolvementDW_A" },
                    {ConnectionStringType.ClientDW.ToString(), "mongodb://localhost:27017/ClientDW_A" }
                },
                PreviousChanges = new List<ChangedElement>(),
                Report = new ConcurrentBag<string>()
            };

            syncStep.Start(syncContext);
        }
    }
}
